<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view('common/head');?>

<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">

                        </div>
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th class="center">#</th>
                            <th>用户</th>
                            <th>时间</th>
                            <th>IP</th>
                            <th class="col-xs-7">日志内容</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if($logs){ ?>
                            <?php foreach ($logs as $key => $val) {?>
                                <tr>
                                    <td class="center">
                                        <input class="uids" type="checkbox" name="uids[]" >
                                    </td>
                                    <td>
                                        <?php if($val['uid'] == 0){ ?>
                                            【系统派单脚本】
                                        <?php }else{ ?>
                                            <?php echo $val['user_name'];?>
                                        <?php } ?>
                                    </td>
                                    <td><?php echo date("Y-m-d H:i",$val['t']);?></td>
                                    <td><?php echo $val['ip'];?></td>
                                    <td><?php echo $val['log'];?></td>
                                </tr>
                            <?php } ?>
                        <?php } ?>
                        </tbody>
                    </table>
                    <?php if($pagination){?><ul class="pagination"><?php echo $pagination;?></ul><?php }?>
<!--                        {$page}-->
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
       
    </div><!-- /.main-content -->

</div><?php $this->load->view('common/footer');?>


<?php $this->load->view('common/footerjs');?>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {

        $("#officialnews ul").html('<div class="ace-icon fa fa-spinner fa-spin orange"></div>');

    })

</script>
</body>
</html>
